// pages/login/index.js
Page({
  data:({
    info:{},
  }),
  getuserprogile() {
    wx.getUserProfile({
        desc: '用于完善用户的信息',
        success: (res) => {
            this.setData({
                info: res.userInfo,
            })
            console.log(this.data.info);
            wx.setStorageSync("userinfo",this.data.info);
        }
    }),
    wx.navigateBack({
      // delta:1
    })
    this.onShow()
},

})